<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<% if (@title.nil?)  
@title = "[soco]" 
end 
%>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Soco Project, reloaded - <%= @title %></title>
<!-- Angel' mental note: this is GUI 2.4 -->
<link rel="shortcut icon" href="/favicon.ico" />

<%= stylesheet_link_tag 'style' %>
<!--[if IE]>
<%= stylesheet_link_tag 'style_ie' %>
<![endif]-->

       

        <%= stylesheet_link_tag 'application' %>

        <%= stylesheet_link_tag controller.controller_name %>
        <%= javascript_include_tag :defaults %>

</head>
<body>


<%
if (@title.include? "Profile for ")
    if (@user.first_name.concat(@user.last_name).include? User.find(session[:user]).first_name.concat(User.find(session[:user]).last_name) )
        @@animate_flash = "";
    else
        @@animate_flash = "_silent";
end
else
    @@animate_flash = "_silent";
end
 %>

	<div class="dt main" >
		<div class="dt header" >
			<div class="dr">
				<div class="dc" >
					<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
						   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
						   width="685" height="261">
					<param name="movie" value="/flash/menu<%= @@animate_flash %>.swf?button=0"> 
					<param name="quality" value="high">
					<param name="menu" value="false">
					<!--[if !IE]> <-->
					<object data="/flash/menu<%= @@animate_flash %>.swf?button=0"
							width="685" height="261" type="application/x-shockwave-flash">
					 <param name="quality" value="high">
					 <param name="menu" value="false">
					 <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
					 FAIL (the browser should render some flash content, not this).
					</object>
					<!--> <![endif]-->
				   </object>
				</div>
			</div>
		</div>
		<div class="dt cont" style="padding:0;" >
			<div  style="margin: 30px 35px 30px 33px;">
<!-- hmm. changed my mind
				<img alt="" src="images/6-t1.gif" ><br>
				<img alt="" src="images/spacer.gif" width="1" height="20">-->
				
				


        <% if flash[:error] -%>
            <div id="error"><b>Error: </b><%= flash[:error] %></div><br />
            <script language="javascript" type="text/javascript">
                <%= visual_effect :highlight, 'error', :duration => 2, :startcolor => '\'#ff0000\'' %>
            </script>
        <% end -%>
        <% if flash[:notice] -%>
            <div id="notice"><%= flash[:notice] %></div><br />
        <% end -%>
        <%= @content_for_layout %>



			</div>
		</div>
		<div class="dt footer" >
			<div class="dr">
				<div class="dc col1" >
					<div  style="margin: 10px 0px 0px 34px;"><a href="https://agora.cs.uiuc.edu/display/cs428/SoCo+%28Social+Course+Planner%29" target=new >Soco Group, CS428 2007</a></div>
				</div>
				<div class="dc col2" >
					<div  style="margin: 10px 38px 0px 0px;">You are logged in as <strong>
					<%= 
					if (session[:user].nil?)  #problem with logout
					"nobody"
					else
					User.find(session[:user]).username 
					end %> </strong></div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>